﻿<%@ Page Language="C#" MasterPageFile="~/Template/TicketManagement.Master" AutoEventWireup="true" CodeBehind="Question.aspx.cs" Inherits="TicketManagement.Ticket.Question" %>

<%@ Register src="../Template/uFooter.ascx" tagname="uFooter" tagprefix="uc1" %>
<%@ Register src="../Template/uSidebar.ascx" tagname="uSidebar" tagprefix="uc2" %>
<%@ Register src="../Template/uStaffSidebar.ascx" tagname="uStaffSidebar" tagprefix="uc6" %>
<%@ Register src="../Template/uMenu.ascx" tagname="uMenu" tagprefix="uc3" %>
<%@ Register src="../Template/uStaffMenu.ascx" tagname="uStaffMenu" tagprefix="uc5" %>
<%@ Register src="../Template/uHeader.ascx" tagname="uHeader" tagprefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .allTickets, .searchTicket 
        {
            background-color: #FF6600 !important;
            color: #FFF !important;
        }
    </style>
    <script src="../Assets/Scripts/tickets.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="wrapper">
        <div class="clear10"></div>
        <uc4:uHeader ID="uHeader1" runat="server" />

        <div class="clear10"></div>
        <uc3:uMenu ID="uMenu1" runat="server" />
        <uc5:uStaffMenu ID="uStaffMenu1" runat="server" />

        <div class="clear10"></div>
        <div class="body">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr valign="top">
                        <td> 
                            <table width="100%" class="box-vang5" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr class="light">
                                        <td class="text-top">.:. MY SUPPORT :: TÌM KIẾM</td>
                                    </tr>
                                </tbody>
                            </table>
                            <table class="box-vang5" width="100%" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr>
                                        <td class="t-l"></td>
                                        <td class="t-c"></td>
                                        <td class="t-r"></td>
                                    </tr>
                                    <tr class="light">
                                        <td class="c-l"></td>
                                        <td class="c-c" valign="top">
                                            <table width="100%" border="0" cellpadding="5" cellspacing="0" class="font_11">              
                                                <tbody>
                                                    <tr class="light">                
                                                        <td colspan="6" style="padding-left:5px">                
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">                  
                                                                <tbody>
                                                                    <tr class="light">
                                                                        <td class="td_2" align="left" width="80px">Từ khóa:</td>
                                                                        <td class="td_2" align="left">
                                                                            <input type="text" id="txtKeyword" value="" size="30" class="input" style="width:250px" runat="server"/>
                                                                        </td>
                                                                    </tr>
                                                                    <tr class="light">
                                                                        <td class="td_2" align="left" width="80px">Trạng thái:</td>
                                                                        <td class="td_2" align="left">
                                                                            <label><input type="checkbox" name="moigui" value="1" id="cbxNewRequset" runat="server"/>Yêu cầu mới gửi</label>
                                                                            <label><input type="checkbox" name="dangxuly" value="2" id="cbxProcessing" runat="server"/>Đang xử lý</label>
                                                                            <label><input type="checkbox" name="datraloi" value="3" id="cbxAnswered" runat="server"/>Đã trả lời</label>
                                                                            <label><input type="checkbox" name="daxulyxong" value="5" id="cbxProcessed" runat="server"/>Đã xử lý xong</label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr class="light">
                                                                        <td class="td_2" align="left" width="80px">Nơi tìm kiếm:</td>
                                                                        <td class="td_2" align="left">
                                                                            <label><input type="radio" name="chon" value="0" runat="server" id="rbtContent" checked/> Nội dung câu hỏi</label> 
                                                                            <label><input type="radio" name="chon" value="1" runat="server" id="rbtComment"/> Phần trao đổi</label>                        
                                                                        </td>
                                                                    </tr>
                                                                    <tr class="light">
                                                                        <td class="td_2" align="left" width="80px">Thời gian:</td>
                                                                        <td class="td_2" align="left" style="font-weight:bold">
                                                                            <label><input type="radio" name="thoigian" value="1" id="rbtIn2Months" runat="server" checked/>2 tháng gần đây</label>&nbsp;&nbsp;
                                                                            <label><input type="radio" name="thoigian" value="2" id="rbtAll" runat="server"/>Lâu hơn</label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr class="light">
                                                                        <td class="td_2" align="left" width="80px">&nbsp;</td>
                                                                        <td class="td_2" align="left">
                                                                            <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" CssClass="buttonnew" 
                                                                                onclick="btnSearch_Click"/>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>    
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td>
                                                            <asp:GridView ID="grvTicket" runat="server" CssClass="gridView" 
                                                                ShowHeaderWhenEmpty="True" Width="100%" AutoGenerateColumns="False" 
                                                                AllowPaging="True" AllowSorting="True" PageSize="5" 
                                                                onpageindexchanging="grvTicket_PageIndexChanging" onsorting="grvTicket_Sorting">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="Mã số" SortExpression="TKT_NUMBER">
                                                                        <ItemTemplate>
                                                                            <a href='Detail.aspx?id=<%# Eval("TKT_ID") %>'><%# Eval("TKT_NUMBER") %></a>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="TKC_NAME" HeaderText="Lĩnh vực"/>
                                                                    <asp:BoundField DataField="DEP_NAME" HeaderText="Gửi đến"/>
                                                                    <asp:BoundField DataField="TKT_TIMESTAMP" HeaderText="Thời gian" 
                                                                        SortExpression="TKT_TIMESTAMP"/>
                                                                    <asp:BoundField DataField="TKS_NAME" HeaderText="Trạng thái"/>
                                                                    <asp:BoundField DataField="OLN_DESC" HeaderText="Dịch vụ"
                                                                        SortExpression="OLN_DESC"/>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="font_10">
                                                <tbody>
                                                    <tr class="light">
                                                        <td colspan="2">
                                                            <div class="clear" style="height:10px"></div>
                                                            <div class="tl fr">
                                                            </div>
                                                        </td>               
                                                    </tr>             
                                                </tbody>
                                            </table>
                                        </td>
                                        <td class="c-r"></td>
                                    </tr>
                                    <tr>
                                        <td class="b-l"></td>
                                        <td class="b-c"></td>
                                        <td class="b-r"></td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                        <td width="10"></td>
                        <td width="180">
                            <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr class="light">
                                        <td><img src="../Assets/images/spaces.gif" width="1" height="1"></td>
                                    </tr>
                                </tbody>
                            </table>
                            <uc2:uSidebar ID="uSidebar1" runat="server" />
                            <uc6:uStaffSidebar ID="uStaffSidebar1" runat="server" />

                            <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr class="light">
                                        <td><img src="../Assets/images/spaces.gif" width="1" height="1"></td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>  
        </div>  
        <div class="clear20"></div>
        <div class="clear20"></div>
        <uc1:uFooter ID="uFooter1" runat="server" />

        <div class="clear"></div>    
    </div>
</asp:Content>
           